package com.ywjt.platformbusiness.market.commongoods.adapter;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;

import java.util.ArrayList;
import java.util.List;

public class GoodsDetailCommentAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    private List<String> data;
    public GoodsDetailCommentAdapter(@Nullable List<String> data) {
        super(R.layout.item_goods_detail_comment, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        RecyclerView rcCommon=helper.getView(R.id.rcCommon);
        data=new ArrayList<>();
        data.add("");
        data.add("");
        data.add("");
        data.add("");
        DynamicItemPictureAdapter adapter=new DynamicItemPictureAdapter(data);
        rcCommon.setAdapter(adapter);
        rcCommon.setLayoutManager(new GridLayoutManager(mContext,3,RecyclerView.VERTICAL,false));
    }
}
